<template>
    <n-form label-width="120px">
        <n-form-item label="APP名称">
            <n-input v-model:value="pkgmeta.title" />
        </n-form-item>
        <n-form-item label="简介">
            <n-input v-model:value="pkgmeta.desc" type="textarea" />
        </n-form-item>
    </n-form>
</template>

<script setup lang="ts">
import { ref, Ref } from 'vue';
import { AppPkgMeta, AppModel } from '../../model/AppModel'

const pkgmeta: Ref<AppPkgMeta> = ref({
    name: '',
    version: '' ,
    docver: '' ,
    uuid: '' ,
    title: '' ,
    desc: '' ,
    createtime: 0 ,
    modifytime: 0 ,
    parts: 0 ,
})

function setModel(model: AppModel) {
    pkgmeta.value = model.pkgmeta
}

defineExpose({setModel})


</script>
